<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>家长端 - 在线考试系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }

        .navbar {
            background-color: #007bff;
            color: white;
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .navbar h1 {
            margin: 0;
            font-size: 24px;
        }

        .content {
            padding: 20px;
            max-width: 900px;
            margin: 20px auto;
        }

        .section {
            background-color: white;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .section h2 {
            font-size: 20px;
            margin-top: 0;
            color: #333333;
            border-bottom: 2px solid #007bff;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        table, th, td {
            border: 1px solid #dddddd;
        }

        th, td {
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #007bff;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #28a745;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            text-align: center;
        }

        .btn:hover {
            background-color: #218838;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .form-group input[type="text"],
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
        }

        .form-group textarea {
            resize: vertical;
        }
    </style>
</head>
<body>
    <div class="navbar">
        <h1>在线考试系统 - 家长端</h1>
    </div>

    <div class="content">
        <div class="section">
            <h2>学生成绩概览</h2>
            <table>
                <thead>
                    <tr>
                        <th>考试名称</th>
                        <th>考试日期</th>
                        <th>成绩</th>
                        <th>状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>数学期中考试</td>
                        <td>2024-09-01</td>
                        <td>85</td>
                        <td>已完成</td>
                    </tr>
                    <tr>
                        <td>物理期中考试</td>
                        <td>2024-09-05</td>
                        <td>90</td>
                        <td>已完成</td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="section">
            <h2>与老师沟通</h2>
            <form>
                <div class="form-group">
                    <label for="message">给老师的消息:</label>
                    <textarea id="message" name="message" rows="4"></textarea>
                </div>
                <a href="#" class="btn">发送消息</a>
            </form>
        </div>
    </div>
</body>
</html>
